import request from '@/utils/request'

// 查询雪具租赁列表
export function listRent(query) {
  return request({
    url: '/bussiness/rent/list',
    method: 'get',
    params: query
  })
}

// 查询雪具租赁详细
export function getRent(rentId) {
  return request({
    url: '/bussiness/rent/' + rentId,
    method: 'get'
  })
}

// 新增雪具租赁
export function addRent(data) {
  return request({
    url: '/bussiness/rent',
    method: 'post',
    data: data
  })
}

// 修改雪具租赁
export function updateRent(data) {
  return request({
    url: '/bussiness/rent',
    method: 'put',
    data: data
  })
}

// 删除雪具租赁
export function delRent(rentId) {
  return request({
    url: '/bussiness/rent/' + rentId,
    method: 'delete'
  })
}
